#! /usr/bin/env python
#coding=GBK
import base_object
import iworld2d, flashui
import t_room_logic, t_command,t_game, t_mapmgr

inst = None
def init():
	global inst
	if not inst:
		inst = CEffMgr()

def destroy():
	global inst
	if inst:
		inst.destroy()
		inst = None

def update():
	if inst:
		inst.update()

class CEff_alpha(object):
	def __init__(self, image, texture):
		self.image = image
		self.texture = texture
		self.index = 0
		self.indexmax = 19
		self.frey = 1000
		self.frey_s = self.frey / self.indexmax+1
		self.time = 0
		pass

	def destroy(self):
		pass

	def update(self):
		self.time += t_mapmgr.game_last_frame
		self.image.shade_lerp_image(self.texture)
		pass

class CEffMgr(base_object.CObject):
	def __init__(self):
		pass

	def destroy(self):
		pass

	def update(self):
		pass
